#include <stdio.h>
#include <assert.h>

char my_strcpy(char* array2, const char* array1)
{
	assert(array1 != NULL && array2 != NULL);
	char* ptr = array2;
	while (*array2++ = *array1++)
	{
		;
	}
	return array2;
}

int main()
{
	char array1[] = "xxxxxxxxxxxxxx";
	char array2[] = "abcdfg";
	my_strcpy(array1, array2);
	printf("%s ", array1);
	return 0;
}